#
# @lc app=leetcode.cn id=1374 lang=python3
#
# [1374] 生成每种字符都是奇数个的字符串
#

# @lc code=start
class Solution:
    def generateTheString(self, n: int) -> str:
        newstr=''
        if n%2==0:
            newstr+='a'
            n-=1
            for i in range(n):
                newstr+='b'
        else:
            if n==1:
                return 'a'
            else:
                newstr+='ab'
                n-=2
                for i in range(n):
                    newstr+='c'
        return newstr
# @lc code=end

